package com.zyx.service.impl;

import com.zyx.pojo.DTO.PeopleDTO;
import com.zyx.pojo.People;
import com.zyx.mapper.PeopleMapper;
import com.zyx.service.IPeopleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zlx
 * @since 2021-09-08
 */
@Service
public class PeopleServiceImpl extends ServiceImpl<PeopleMapper, People> implements IPeopleService {
    @Autowired
    private PeopleMapper peopleMapper;
    @Override
    public List<PeopleDTO> getPeopleList() {
        return peopleMapper.getPeopleList();
    }
}
